﻿namespace ufida.u9.ait.openapi
{
	using System;
	using System.Collections.Generic;
	using System.Text;
    using ufida.u9.ait.openapi.utils;
    using UFIDA.U9.Base;
    using UFIDA.U9.Base.Organization;
    using UFIDA.U9.CBO.Pub.Controller;
    using UFIDA.U9.CBO.SCM.Item;
    using UFSoft.UBF.AopFrame;	
	using UFSoft.UBF.Util.Context;

	/// <summary>
	/// ItemMasterApproveSV partial 
	/// </summary>	
	public partial class ItemMasterApproveSV 
	{	
		internal BaseStrategy Select()
		{
			return new ItemMasterApproveSVImpementStrategy();	
		}		
	}
	
	#region  implement strategy	
	/// <summary>
	/// Impement Implement
	/// 
	/// </summary>	
	internal partial class ItemMasterApproveSVImpementStrategy : BaseStrategy
	{
		public ItemMasterApproveSVImpementStrategy() { }

		public override object Do(object obj)
		{						
			ItemMasterApproveSV bpObj = (ItemMasterApproveSV)obj;

			return CodeUtils.EntitySave<ItemMasterSendDTOData,ItemMaster>(bpObj, bpObj.Data, 
				null, ItemMasterBase.ApproveItem);
        }		
	}

	#endregion
	
	
}